require 'socket'

class IRC

	def Connect()
		$Socket = TCPSocket.open($Server_Address, $Server_Port)
		self.Write("NICK "+$Bot_Nick)
		self.Write("USER "+$Bot_Ident+" * 8 :"+$Bot_Realname)
	end
	
	def Disconnect()
		pass
	end
	
	def Read()
		$buffer = $Socket.gets
		$bufferbits = $buffer.split(" ")		
	end
	
	def Write(contents)
		$Socket.write(contents+"\r\n")
	end
	
end